package com.health.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.health.system.entity.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * 根据用户id查询对应的菜单
     *
     * @param id 用户id
     * @return /
     */
    List<Menu> treeByUserId(@Param("id") Long id);
}
